<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no, viewport-fit=cover">
<meta name="format-detection" content="telephone=no" />
<title>移动端测试03</title>
<style type="text/css">
body{ margin: 0; padding: 0; min-width: 320px; max-width: 1080px; overflow-x: hidden;}
/*表单-仿element*/
.ygbh-form .ygbh-form-item{
    margin-bottom: 22px;
}
.ygbh-form .ygbh-form-item__label{
    text-align: right;
    vertical-align: middle;
    float: left;
    width: 100px;
    font-size: 14px;
    color: #606266;
    line-height: 40px;
    padding: 0 12px 0 0;
    box-sizing: border-box;
}
.ygbh-form .ygbh-form-item__content{
    margin-left: 100px;
    line-height: 40px;
    position: relative;
    font-size: 14px;
}
.ygbh-form .ygbh-form-item__error{
    color: #f56c6c;
    font-size: 12px;
    line-height: 1;
    padding-top: 4px;
    position: absolute;
    top: 100%;
    left: 0;
}
.ygbh-form .ygbh-form-item::after{
    content:  '';
    display: table;
    clear: both;
}
.ygbh-form .ygbh-input{
    -webkit-appearance: none;
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    box-sizing: border-box;
    color: #606266;
    display: inline-block;
    font-size: inherit;
    height: 40px;
    line-height: 40px;
    outline: none;
    padding: 0 15px;
    transition: border-color .2s cubic-bezier(.645,.045,.355,1);
    width: 100%;
}
</style>
</head>
<body>
<!-- 表单-仿vant -->
<div class="ygbh-form" style="width: 100vw;">
    <div class="ygbh-form-item">
        <div class="ygbh-form-item__label">用户名1</div>
        <div class="ygbh-form-item__content">
            <input type="text" class="ygbh-input">
            <div class="ygbh-form-item__error">请输入正确内容</div>
        </div>
    </div>
    <div class="ygbh-form-item">
        <div class="ygbh-form-item__label">用户名1</div>
        <div class="ygbh-form-item__content">
            <input type="text" class="ygbh-input">
            <div class="ygbh-form-item__error">请输入正确内容</div>
        </div>
    </div>
</div>


</body>
</html>
